package com.itheima.service.impl;


import com.itheima.bean.pojo.Role;
import com.itheima.dao.RoleDao;
import com.itheima.service.RoleService;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleDao roleDao;
    @Override
    public List<Role> queryRoles() {


        List<Role> roleList = roleDao.findAllRole();



        return roleList;
    }
}
